Repository navigation
fix(ci): decouple build and deploy jobs in GitHub Pages workflow - #258
Conversation
🤖 DevShelf AI-Driven PR Optimization & Tagging
📦 Resource:
|
🚀 Congratulations @Ritual-Dev-Git! Your tool is officially LIVE on DevShelf! 🎉Your submission of your project has passed all schema, duplicate, and endpoint integrity audits and is now merged into 🌐 Permanent Live ListingYour project has a dedicated, high-ranking SEO landing page with verified zero-paywall status and machine-readable JSON-LD grounding: ⚡ Want 10x More Developer Discovery? Feature Your ToolDevShelf reaches thousands of technical founders, engineers, and AI developers every week across the Web, CLI ( As a verified contributor, unlock exclusive partner boost tiers:
(Or view all custom sponsorship packages and instant tax invoices on the DevShelf Partner Portal) 🏷️ Add the Official "DevShelf Verified" Backlink BadgeShow users that your project is community-verified with zero paywalls by adding an official badge to your Style 1: Verified Green Pill (Recommended)[](https://ritualdev.in/devshelf)Style 2: Flat Shield Badge[](https://ritualdev.in/devshelf)🎨 View Partner Portal & Verified Badges 📢 Amplify & Get Discovered
Welcome to the community! 🤝 |
??? GitHub Pages Deployment Architecture Fix
Root Cause
When
actions/upload-pages-artifactandactions/deploy-pagesrun sequentially within the exact same runner job, an API indexing race condition occurs on GitHub Actions where the deployment action queries the artifact before the artifact service indexesgithub-pages, resulting in:Error: No artifacts named "github-pages" were found for this workflow run.(Failing after ~24s on push).
Solution
Follow official GitHub Pages workflow standard by decoupling into two jobs:
build: Checks out, compiles catalog & assets, runs IndexNow, configures Pages, and uploads the artifact.deploy: Requiresneeds: build, runs in the isolatedgithub-pagesenvironment, and deploys the indexed artifact cleanly without race conditions.